-
Notifications
You must be signed in to change notification settings - Fork 74
Shared Cache implementation #6115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adds memory and redis drivers
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6115 +/- ##
==========================================
- Coverage 76.81% 76.71% -0.10%
==========================================
Files 381 384 +3
Lines 19290 19363 +73
Branches 4646 4651 +5
==========================================
+ Hits 14817 14854 +37
- Misses 4473 4509 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…sure proper loop iteration
And ensure `undefined` returned not `null`
Test coverage looks strange as it contains files I've not touched. Also still getting the odd UI RBAC test failures that again should be unrelated. Tests are all running with the memory cache, not redis/valkey, but we should be able to enable valkey in the test suite |
To test run
And add to end of
|
part of #3642
Description
This adds a new caches component to the
app
object. It can be backed by in memory objects or a remote Redis/Valkey instance to allow sharing between multiple instances of the Forge App.app.caches.initCache()
used to set backend upapp.caches.getCache(name)
used to create/retrieve a cache instance with a given namecache.get(key)
gets a value for a keycache.set(key, value)
sets a value for keycache.del(key)
removes a keycache.keys()
array of all keyscache.all()
object with all key value pairs in the cache instanceNeeds tests
Related Issue(s)
#3642
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label